package com.chenyongjing.design.pattern.strategy.template.course;

public class JavaCourse extends AbstractCourse{

    private boolean needCheckHomwork =false;

    public void setNeedCheckHomwork(boolean needCheckHomwork) {
        this.needCheckHomwork = needCheckHomwork;
    }

    @Override
    protected boolean needCheckHomwork() {
        return this.needCheckHomwork;
    }

    @Override
    protected void checkHomework() {
        System.out.println("检查java作业");
    }
}
